# -*- coding: UTF-8 -*-
# __author__ = '10459'

import threading
import time


def worker():
    print("I am xiancheng2")
    time.sleep(10)
    t = threading.current_thread()
    print("t的线程名字:" + t.getName())


newt = threading.Thread(target=worker)  # 定义线程，获取线程对象,注意target后面不能为是string
newt.start()  # 启动线程

# print ("wo shi Louis")
# r = threading.current_thread()
# print("r的线程名字："+ r.getName())
